package com.bzframework.pro.model.school;

import com.bzframework.pro.entity.OrderEntity;
import com.bzframework.pro.model.order.Product;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hswebframework.ezorm.rdb.mapping.annotation.ColumnType;
import org.hswebframework.ezorm.rdb.mapping.annotation.JsonCodec;

import javax.persistence.Column;
import java.sql.JDBCType;
import java.util.List;

/**
 * @Author bingzhong
 * @Date 2025/3/24 12:59
 * @Description
 */
@Getter
@Setter
public class SchoolOrderVO{

    private String Id;

    @Schema(description = "创建时间，格式yyyyMMddHHmmss")
    private String createtime;

    
    @Schema(description = "更新时间，格式yyyyMMddHHmmss")
    private String updatetime;

    
    @Schema(description = "学员id")
    private String student_id;

    
    @Schema(description = "订单类型")
    private String order_type;

    
    @Schema(description = "订单编号")
    private String order_code;

    
    @Schema(description = "下单日期，格式yyyyMMddHHmmss")
    private String order_date;

    
    @Schema(description = "交费日期，格式yyyyMMddHHmmss")
    private String payment_date;

    
    @Schema(description = "订单金额")
    private Double order_money;

    
    @Schema(description = "订单状态")
    private String order_Status;

    
    @Schema(description = "下单校区id")
    private String campus_id;

    
    @Schema(description = "订单备注")
    private String memo;

    
    @Schema(description = "学员id")
    private String student_user_id;

    
    @Schema(description = "交费记录id，当为一串零时，说明该订单还未付款")
    private String charge_id;

    
    @Schema(description = "支付之后生成的交易号")
    private String transaction_id;

    
    @Schema(description = "支付类型，1必须全款 2定金支付")
    private Integer pay_type;

    
    @Schema(description = "支付金额")
    private Double pay_fact;

    
    @Schema(description = "是否使用了折扣 1是 0否")
    private Integer is_use_discount;

    
    @Schema(description = "是否使用了优惠券 1是 0否")
    private Integer is_use_coupon;

    
    @Schema(description = "是否使用了积分 1是 0否")
    private Integer is_use_point;

    @Schema(description = "订单项目明细列表")
    private List<Product> products;

}
